﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

using AjaxControlFramework;

namespace Float
{
    public abstract class CodeRegion : BaseUserControl
    {
        //------// Properties \\--------------------------------------------\\
        private HtmlTextArea _codeEditor = null;
        public virtual HtmlTextArea CodeEditor
        {
            get
            {
                if (_codeEditor == null)
                {
                    _codeEditor = AjaxControlUtils.FindControls(this, false, "txtCodeEditor").FirstOrDefault() as HtmlTextArea;
                }

                return _codeEditor;
            }
        }
        //------\\ Properties //--------------------------------------------//



        //------// Constructors \\------------------------------------------\\
        public CodeRegion(string appRelativeVirtualPath)
            : base(appRelativeVirtualPath)
        { }
        //------\\ Constructors //------------------------------------------//



        //------// Methods \\-----------------------------------------------\\
        
        //------\\ Methods //-----------------------------------------------//
    }
}